#nullable enable
using System;

namespace REP.Domain.Entities
{
    /// <summary>
    /// 附件信息（BOM 级附件：上传/预览/删除）
    /// </summary>
    public class Attachment : BaseEntity
    {
        /// <summary>所属 BOM Id</summary>
        public Guid? BomId { get; set; }
        /// <summary>文件名</summary>
        public string? FileName { get; set; }
        /// <summary>原始文件名（用户上传名）</summary>
        public string? OriginalName { get; set; }
        /// <summary>文件大小（字节）</summary>
        public long? FileSize { get; set; }
        /// <summary>文件类型（MIME）</summary>
        public string? ContentType { get; set; }
        /// <summary>存储路径或URL</summary>
        public string? Url { get; set; }
        /// <summary>上传人</summary>
        public string? UploadedBy { get; set; }
        /// <summary>上传时间</summary>
        public DateTime? UploadedAt { get; set; }
        /// <summary>备注</summary>
        public string? Description { get; set; }
    }
}
